package client;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.net.InetAddress;

public class ClientData {

	private int clientPort;
	private String clientAddress;
	private BufferedWriter writer;
	private BufferedReader reader;
	private String clientName;
	public String caller;

	public ClientData(int clientPort,
			InetAddress clientAddress, BufferedWriter buffWriter,
			BufferedReader buffReader, String clientName) {
		super();
		this.clientPort = clientPort;
		this.clientAddress = clientAddress.getCanonicalHostName();
		this.writer = buffWriter;
		this.reader = buffReader;
		this.clientName = clientName;
	}

	// retorna o clientclientCommunicationPort
	public int getClientPort() {
		return clientPort;
	}

	// seta o clientclientCommunicationPort
	public void setClientPort(int clientPort) {
		this.clientPort = clientPort;
	}

	// retorna o clientAddress
	public String getClientAddress() {
		return clientAddress;
	}

	// seta o clientAddress
	public void setClientAddress(String clientAddress) {
		this.clientAddress = clientAddress;
	}

	// retorna o buffWriter
	public BufferedWriter getBuffWriter() {
		return writer;
	}

	// seta o buffWriter
	public void setWriter(BufferedWriter buffWriter) {
		this.writer = buffWriter;
	}

	// retorna o clientName
	public String getClientName() {
		return clientName;
	}

	// seta o clientName
	public void setClientName(String clientName) {
		this.clientName = clientName;
	}

	//retorna o buffReader 	
	public BufferedReader getBuffReader() {
		return reader;
	}

	// seta o buffReader
	public void setBuffReader(BufferedReader buffReader) {
		this.reader = buffReader;
	}

}
